<?php    
session_start();        
include('system/connect.php');   
$my_id = $_SESSION['my_id'];
     
$sql = "update chat2_chanels set user_id=0 where user_id = '$my_id'";
mysql_query($sql);                            
$sql = "update sf_guard_user set have_chanel=0 where id = $my_id";
mysql_query($sql);  

?>